//获取用户的当前设置
export function getSetting() {
	return new Promise(function(resolve, reject) {
		uni.getSetting({
			success: function(res) {
				if (res.authSetting['scope.userInfo']) {
					resolve(true);
				} else {
					resolve(false);
				}
			}
		})
	}).catch((e) => {
		console.log(e)
	});
}

